package pi.client.utils;

import java.awt.image.BufferedImage;
import java.io.IOException;

import javax.imageio.ImageIO;

public class ImageUtils{	
	static public BufferedImage LoadImage(String filename){
		BufferedImage image = null;

		try{
			//image = ImageIO.read(new File(filename));
			image = ImageIO.read(ImageUtils.class.getClass().getResource("/"+filename));
		}catch(IOException e){
			e.printStackTrace();
		}
		
		return image;
	}
}
